//
//  main.m
//  oc_21
//
//  Created by 楼楚 on 15/9/17.
//  Copyright (c) 2015年 Chu Lou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Human.h"

int main(int argc, const char * argv[]) {
    @autoreleasepool {
#if 0
    
        NSString *str = [NSString stringWithFormat:@"hello world"];
        
        //copy        mutablecopy
        NSString *str2 = [str copy];//得到一个不可变字符串
        NSMutableString *str3 = [str mutableCopy];//  得到可变字符串
        
        [str3 appendString:@"123"];
        NSLog(@"%@",str2);
        NSLog(@"%@",str3);
//         字符串拷贝 得到的结果类型 以调用的 拷贝方法为基准
        
#endif
        
        Human *hm = [[Human alloc]init];
        hm.name = @"hehehe";
        hm.height = 180.0;
        Human *hm2 = [hm copy];
        NSLog(@"%@ %f",hm2.name,hm2.height);
    
    }
    return 0;
}
